package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 澄清/补疑表
 * </p>
 *
 * @author zhongdl
 * @since 2021-11-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_clarify")
@ApiModel(value="Clarify对象", description="澄清/补疑表")
public class Clarify extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;



    @ApiModelProperty(value = "是否延期")
    private Integer delayFlag;

    @ApiModelProperty(value = "附件")
    private Attachments attachment;

    @ApiModelProperty(value = "澄清/补疑文件")
    private Attachments clarifyFile;

    @ApiModelProperty(value = "澄清/补疑文件(签章)")
    private Attachments clarifyFileSignature;

    @ApiModelProperty(value = "澄清问题标题")
    private String title;

    @ApiModelProperty(value = "澄清问题内容")
    private String content;

    @ApiModelProperty(value = "1 待发出 2 已发出")
    private Integer status;

    @ApiModelProperty(value = "澄清问题提交截止时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime clarificationSubmissionEndTime;

    @ApiModelProperty(value = "响应文件递交截止时间及开标时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  bidOpeningTime;

    @ApiModelProperty(value = "提出人id")
    private Long proposerId;

    @ApiModelProperty(value = "提出时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  proposerTime;

    @ApiModelProperty(value = "提出人姓名")
    private String proposerName;
}
